package com.wx.mall.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 登录日志
 * </p>
 *
 * @author ljl
 * @since 2020-03-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_login_log")
@ApiModel(value="LoginLog对象", description="登录日志")
public class LoginLog implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "登录日志记录编号")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "登录用户名")
    private String loginName;

    @ApiModelProperty(value = "登录的IP地址")
    private String ip;

    @ApiModelProperty(value = "登录的浏览器名称")
    private String browserName;

    @ApiModelProperty(value = "登录所在地区")
    private String location;

    @ApiModelProperty(value = "登录时间")
    private Date loginTime;


}
